package com.itheima.service;

import com.itheima.common.CompanyResult;
import com.itheima.common.Result;
import com.itheima.pojo.hm.HmSubjects;
import com.itheima.pojo.hm.SubjectDto;

import java.util.List;

public interface SubjectsService {
    CompanyResult updateById(HmSubjects subjects);

    CompanyResult deleteById(Integer id);

    CompanyResult add(HmSubjects subjects);

    List<SubjectDto> findAll();

    Result findPage(Integer page, Integer pagesize, String subjectName);
}
